package com.example.demo.sample;

import org.springframework.context.annotation.Profile;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @author void
 * @date 2021/5/18 19:30
 * @desc
 */
@Profile("simple")
@RestController
public class ResourceController {

    @RequestMapping("/me")
    public Principal me(Principal principal){
        System.out.println(principal.toString());
        return principal;
    }
}
